home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ZThread-2.2.6.lha / BUILDING < prev    next >
Text File  |  2002-05-27  |  2KB  |  57 lines

  1. BUILDING THE SOURCE:
  2.  
  3.   If you are using autoconf (the configure script) you can select an
  4.   implementation by using one of the following
  5.  
  6.   --enable-posix 
  7.   --enable-win32
  8.   --enable-win9x
  9.  
  10.   By default one will be autodetected.
  11.  
  12.   Otherwise, define one of the following flags to select an implementation:
  13.  
  14.   ZT_POSIX, ZT_WIN32, ZT_WIN9X
  15.  
  16.   ZT_POSIX should support everything
  17.   ZT_WIN32 supports windows NT, 2K, XP on 32 and 64 bit platforms.
  18.   ZT_WIN9X supports windows 9X, NT, 2K, XP on 32 bit platforms.
  19.   
  20.   Define the following flag if you defined ZT_WIN32 and want to compile
  21.   a static version of the library. 
  22.  
  23.   ZTHREAD_STATIC
  24.  
  25.   If compiling the library itself from an IDE, or with some other compiler
  26.   the autoconf scripts don't detect and use; be sure to define 
  27.  
  28.   ZTHREAD_EXPORTS
  29.  
  30.   so that the library functions will be correctly exported from the DLL.
  31.  
  32.   In the contrib directory, you will find a makefile for trolltechs make.
  33.   This can also be used to build the project on many different systems.  
  34.  
  35. CUSTOMIZING YOUR COMPILATION:
  36.  
  37.     Priorities, debug-mode & the I/O interrupt mechanism can all be enabled
  38.   or disabled in your compilation by making the appropriate defines. The
  39.   autoconf toold available to unix platforms make this very easy. The same
  40.   can be done for a Win32 compilation, but you will have to setup your
  41.   projects by hand to make these defines.  
  42.  
  43.     An m4 macro file is included to help build projects with autoconf that
  44.   use ZThreads. It defines the standard --with-zthreads-xxx= type configure
  45.   switches that you see with alot of autoconf-friendly libraries.
  46.  
  47. ERRORS ON WIN32 BUILDS:
  48.  
  49.     Some of the library uses the InterlockedExchangeXXX() functions as 
  50.   mentioned above. The PSDK for windows underwent many changed since VC 6
  51.   came out (which is what I was using when I first wrote that part of the 
  52.   library) and part of those changes changes the signature for the 
  53.   InterlockedExchangeXXX() functions. You should either update your PSDK
  54.   to a more recent version, or simply use the -DZT_WIN9X flag which will
  55.   select an implementation that isn't using those functions and will just
  56.   avoid that problem.
  57.